package com.fis.hthk.dblinkapi.util;


import com.agileitp.forte.framework.TextData;

import com.ssaglobal.scm.wms.service.baseobjects.EXEDataObject;
import com.ssaglobal.scm.wms.service.exeprocessmanager.TransactionServiceSORemote;
public class WmsWebuiValidationSelectImpl {
	protected static final String internalCaller = "internalCall";
	
	public static EXEDataObject select(String selectSql,String db_connection, String wmWhseID, String provider) throws Exception
	{
		try
		{
			TransactionServiceSORemote remote = EJBRemote.getRemote(provider);
			EXEDataObject obj = remote.select(new TextData(selectSql),db_connection,null , null,internalCaller,null);
			return obj;
		}
		catch (Exception ex)
		{
			ex.printStackTrace();
			throw new Exception(ex.getMessage(), ex);
		}

	}
}
